package com.way.mall.api;

import com.way.mall.api.fallback.OrderFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "way-mall", fallbackFactory = OrderFeignFallback.class)
public interface IOrderFeign {

    @GetMapping("/order/{orderId}")
    Map<String,Object> getOrder(@PathVariable("orderId") Integer orderId);
}
